package diko_parent.eduservice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import diko_parent.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import diko_parent.eduservice.entity.frontVo.CourseQueryVo;
import diko_parent.eduservice.entity.vo.CourseInfoForm;
import diko_parent.eduservice.entity.vo.CoursePublishVo;
import diko_parent.eduservice.entity.vo.CourseQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Emma-Li
 * @since 2020-09-25
 */

public interface EduCourseService extends IService<EduCourse> {

    String saveCourceInfo(CourseInfoForm courseInfoForm);

    CourseInfoForm getCourseInfo(String id);

    void updateCourseInfoById(CourseInfoForm courseInfoForm);

    CoursePublishVo getCoursePublishVoById(String id);

    boolean publishCourseById(String id);

    void pageQuery(IPage<EduCourse> pageParam, CourseQuery courseQuery);

    boolean removeCourseById(String id);

    Map<String,Object> pageListWeb(Page<EduCourse> pageParam, CourseQueryVo courseQueryVo);

    List<EduCourse> selectByTeacherId(String teacherId);

}
